print("Hello, welcome to the quiz!") -- Question 1 print("What is 2+4?") answer = io.read() if tonumber(answer) == 2 + 4 then -- tonumber() lets you compare to a number print("Correct!") else print("Nope. The correct answer is: " .. 2+4) end -- Question 2 print("What is the instructor's name?") a = io.read() if a == "James" then -- "James" is a String, so tonumber() is not needed print("Correct!") else print("You don't know my name yet? I'm hurt. It is: " .. "James") end -- Create more questions! Change the previous questions!